package designPattern.command.undoCommand
{
	import designPattern.command.macroCommand.ICommand;
	
	public class CommandWithUndo implements ICommand
	{
		//记录命令的表
		internal static var aCommandList:Array = [];
		
		public function CommandWithUndo()
		{
		}
		
		public function execute():void
		{
			aCommandList.push(this);
		}
		
		//抽象方法 
		public function undo():void
		{
			
		}
	}
}